aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/dashboard
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-05 12:07:46 -0700
committerAdam Soltys <[email protected]>2022-10-05 12:07:46 -0700
commit90fd57b064d3ef0176d5747b79863d6e60a22fc1 (patch)
tree94375f4a74fe63d78bc868d9b6568a408881374e /src/routes/[username]/dashboard
parent59b74034e6dac850f13eafb737034937505d321f (diff)
downloadcoinos-ui-90fd57b064d3ef0176d5747b79863d6e60a22fc1.tar.gz
coinos-ui-90fd57b064d3ef0176d5747b79863d6e60a22fc1.zip
detect internal sends
Diffstat (limited to 'src/routes/[username]/dashboard')
-rw-r--r--src/routes/[username]/dashboard/+page.svelte54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte
index 8d77b699..05f821ec 100644
--- a/src/routes/[username]/dashboard/+page.svelte
+++ b/src/routes/[username]/dashboard/+page.svelte
@@ -51,37 +51,37 @@
{/if}
</div>
-<div class="px-3 md:px-0 flex justify-center items-center mt-10 lg:mt-0 mb-20">
- <div>
- <span class="text-3xl font-bold block mb-1"
- >{$selectedRate
- ? f(accountBalanceFiat, user.currency)
- : $t('user.dashboard.fetchingRate')}</span
- >
+<div class="container px-4 max-w-md mx-auto">
+ <h1 class="text-center text-3xl md:text-4xl font-semibold mb-10">
+ Dashboard
+ </h1>
- <span class="text-secondary text-xl block">
- {accountBalanceSats} SAT
- </span>
+ <div class="text-5xl font-bold mb-2">
+ {$selectedRate ? f(accountBalanceFiat, user.currency) : $t('user.dashboard.fetchingRate')}
+ </div>
+
+ <div class="text-secondary text-2xl">
+ {accountBalanceSats} SAT
+ </div>
- <div class="grid sm:grid-cols-2 gap-2 mt-8">
- <a href={`/${user.username}/receive`}>
+ <div class="grid sm:grid-cols-2 gap-2 mt-8">
+ <a href={`/${user.username}/receive`}>
+ <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
+ >{$t('user.dashboard.receive')}</button
+ >
+ </a>
+ {#if user.account.balance > 0}
+ <a href="/send">
+ <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
+ >{$t('user.dashboard.withdraw')}</button
+ >
+ </a>
+ {:else}
+ <a href={`/${user.username}/settings`}>
<button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >{$t('user.dashboard.receive')}</button
+ >Setup Account</button
>
</a>
- {#if user.account.balance > 0}
- <a href="/send">
- <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >{$t('user.dashboard.withdraw')}</button
- >
- </a>
- {:else}
- <a href={`/${user.username}/settings`}>
- <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2"
- >Setup Account</button
- >
- </a>
- {/if}
- </div>
+ {/if}
</div>
</div>